#pragma once

#include "Triangle.h"

class Rectangle :
    public Triangle
{
public:
    Rectangle() {};
    ~Rectangle() {};
protected:
    // set up vertex data (and buffer(s)) and configure vertex attributes
    float vertices[12] = {
         0.5f,  0.5f, 0.0f,  // top right
         0.5f, -0.5f, 0.0f,  // bottom right
        -0.5f, -0.5f, 0.0f,  // bottom left
        -0.5f,  0.5f, 0.0f   // top left 
    };
    unsigned int indices[6] = {  // note that we start from 0!
        0, 1, 3,  // first Triangle
        1, 2, 3   // second Triangle
    };
    unsigned int VBO, VAO, EBO;
    virtual void init_data();
    virtual void render();
    virtual void dispose();
    virtual void processInput(GLFWwindow* window);
};

